import 'package:json_annotation/json_annotation.dart';

part 'order_confirm_req.g.dart';

@JsonSerializable()
class OrderConfirmReq {
  final Map<int, int> cartIdQuantity;
  final List<int> userPortMappingIds;

  OrderConfirmReq({
    this.cartIdQuantity,
    this.userPortMappingIds,
  });

  factory OrderConfirmReq.fromJson(Map<String, dynamic> json) => _$OrderConfirmReqFromJson(json);

  Map<String, dynamic> toJson() => _$OrderConfirmReqToJson(this);

  @override
  String toString() {
    return toJson().toString();
  }
}
